package com.czk.scala.chapter01

/**
 * @Author:ChenZhangKun
 * @Date: 2022/2/21 22:29
 */
class Dog(name: String, color: String) {
  def print(): Unit = {
    println(s"${name}" + "会叫" + s"${color}")
  }
}

object Animal {
  def main(args: Array[String]): Unit = {
    // 旺财
    val dog1 = new Dog("旺财", "黄色")
    dog1.print()
  }
}
